package com.linkage.lcims.base.po.system;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
@SuppressWarnings("serial")
public class MdSyscodePK implements Serializable {

    /** identifier field */
    private Integer serno;

    /** identifier field */
    private Integer paramno;

    /** full constructor */
    public MdSyscodePK(Integer serno, Integer paramno) {
        this.serno = serno;
        this.paramno = paramno;
    }

    /** default constructor */
    public MdSyscodePK() {
    }

    /** 
     *                @hibernate.property
     *                 column="serno"
     *                 length="10"
     *             
     */
    public Integer getSerno() {
        return this.serno;
    }

    public void setSerno(Integer serno) {
        this.serno = serno;
    }

    /** 
     *                @hibernate.property
     *                 column="paramno"
     *                 length="10"
     *             
     */
    public Integer getParamno() {
        return this.paramno;
    }

    public void setParamno(Integer paramno) {
        this.paramno = paramno;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("serno", getSerno())
            .append("paramno", getParamno())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof MdSyscodePK) ) return false;
        MdSyscodePK castOther = (MdSyscodePK) other;
        return new EqualsBuilder()
            .append(this.getSerno(), castOther.getSerno())
            .append(this.getParamno(), castOther.getParamno())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSerno())
            .append(getParamno())
            .toHashCode();
    }

}
